home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / graphics / povsrc20.arj / MACHINE / UNIX / XWINDOWS.MAK < prev   
Makefile  |  1992-11-11  |  4KB  |  113 lines

  1. # Makefile for Persistence of Vision Raytracer 
  2. # This file is released to the public domain.
  3. #
  4. #
  5. # MAKE Macros and Such...
  6. #
  7.  
  8. #***************************************************************
  9. #*
  10. #*                      UNIX Makefile
  11. #*
  12. #***************************************************************
  13.  
  14. # The exact options may depend on your compiler.  Feel free to modify
  15. # these as required.
  16.  
  17. # Added for colorx addition.  You _do_ have $X11 defined by your .cshrc,
  18. # don't you?
  19. X11 = /usr
  20. CFLAGS=        -c -O 
  21. LFLAGS =    -O  $(X11)/lib/libXt.a $(X11)/lib/libXext.a -lX11 \
  22.                 -o povray
  23. CC =        cc
  24.  
  25. OBJ    = o
  26. MACHINE_OBJ    = xwindows.$(OBJ)
  27.  
  28. # Make's implicit rules for making a .o file from a .c file...
  29. #
  30. .c.o :
  31.     $(CC) $(CFLAGS) $*.c
  32.  
  33.  
  34. POVOBJS = povray.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  35.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  36.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ) \
  37.       hfield.$(OBJ) txtcolor.$(OBJ) txtbump.$(OBJ) txtmap.$(OBJ) \
  38.       txttest.$(OBJ) colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) point.$(OBJ)\
  39.       planes.$(OBJ) iff.$(OBJ) gif.$(OBJ) gifdecod.$(OBJ) blob.$(OBJ)\
  40.       triangle.$(OBJ) raw.$(OBJ) dump.$(OBJ) targa.$(OBJ) poly.$(OBJ) \
  41.       bezier.$(OBJ) vect.$(OBJ) boxes.$(OBJ) $(MACHINE_OBJ)
  42.  
  43.  
  44. povray:    $(POVOBJS)
  45.     cc $(POVOBJS) -lm $(LFLAGS)
  46.  
  47. povray.$(OBJ) : povray.c povproto.h frame.h vector.h config.h
  48.  
  49. xwindows.$(OBJ): xwindows.c xpov.icn frame.h povproto.h config.h
  50.     $(CC) $(CFLAGS) -I$(X11)/include xwindows.c
  51.  
  52. tokenize.$(OBJ) : tokenize.c povproto.h frame.h config.h
  53.  
  54. parse.$(OBJ) : parse.c povproto.h frame.h config.h
  55.  
  56. render.$(OBJ) : render.c povproto.h frame.h vector.h config.h
  57.  
  58. lighting.$(OBJ) : lighting.c povproto.h frame.h vector.h config.h
  59.  
  60. prioq.$(OBJ) : prioq.c povproto.h frame.h config.h
  61.  
  62. texture.$(OBJ) : texture.c povproto.h frame.h vector.h config.h texture.h
  63.  
  64. txtcolor.$(OBJ) : txtcolor.c povproto.h frame.h vector.h config.h texture.h
  65.  
  66. txtbump.$(OBJ) : txtbump.c povproto.h frame.h vector.h config.h texture.h
  67.  
  68. txtmap.$(OBJ) : txtmap.c povproto.h frame.h vector.h config.h texture.h
  69.  
  70. txttest.$(OBJ) : txttest.c povproto.h frame.h vector.h config.h texture.h
  71.  
  72. objects.$(OBJ) : objects.c povproto.h frame.h vector.h config.h
  73.  
  74. spheres.$(OBJ) : spheres.c povproto.h frame.h vector.h config.h
  75.  
  76. planes.$(OBJ) : planes.c povproto.h frame.h vector.h config.h
  77.  
  78. poly.$(OBJ) : poly.c povproto.h frame.h vector.h config.h
  79.  
  80. hfield.$(OBJ) : hfield.c povproto.h frame.h vector.h config.h
  81.  
  82. bezier.$(OBJ) : bezier.c povproto.h frame.h vector.h config.h
  83.  
  84. vect.$(OBJ) : vect.c povproto.h frame.h config.h
  85.  
  86. quadrics.$(OBJ) : quadrics.c povproto.h frame.h vector.h config.h
  87.  
  88. matrices.$(OBJ) : matrices.c povproto.h frame.h vector.h config.h
  89.  
  90. csg.$(OBJ) : csg.c povproto.h frame.h vector.h config.h
  91.  
  92. colour.$(OBJ) : colour.c povproto.h frame.h config.h
  93.  
  94. viewpnt.$(OBJ) : viewpnt.c povproto.h frame.h vector.h config.h
  95.  
  96. ray.$(OBJ) : ray.c povproto.h frame.h vector.h config.h
  97.  
  98. iff.$(OBJ) : iff.c povproto.h frame.h config.h
  99.  
  100. gif.$(OBJ) : gif.c povproto.h frame.h config.h
  101.  
  102. gifdecod.$(OBJ) : gifdecod.c povproto.h frame.h config.h
  103.  
  104. raw.$(OBJ) :    raw.c povproto.h frame.h config.h
  105.  
  106. triangle.$(OBJ) : triangle.c povproto.h frame.h vector.h config.h
  107.  
  108. dump.$(OBJ) :    dump.c povproto.h frame.h config.h
  109.  
  110. boxes.$(OBJ) : boxes.c povproto.h frame.h vector.h config.h
  111.  
  112. blob.$(OBJ) : blob.c povproto.h frame.h vector.h config.h
  113.